package controllers

import (
	"github.com/gin-gonic/gin"
	bizcode "mall-api-gin/pkg/bizerror"
	"net/http"
)

type IndexController struct {
	BaseController
}

func (con IndexController) Index(ctx *gin.Context) {
	defer con.PanicHandler(http.StatusOK)
	con.C = ctx
	con.Response(http.StatusOK, bizcode.SUCCESS, gin.H{
		"code": bizcode.SUCCESS,
		"msg":  "成功",
	})
}
